package com.senven.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.senven.api.pojo.StuActivity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author LQP
 */
@Component
@Mapper
public interface StuActivityMapper extends BaseMapper<StuActivity> {
    public List<StuActivity> queryStuActivityList();

    //插入一个活动信息
    public int insertStuActivity(StuActivity stuActivity);

    //删除一个活动信息
    public int deleteStuActivity(int aid);

    //查询参加活动的学生
    public StuActivity queryStuActivityListByAId(int aid);
}

